<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableFilmTypes extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('film_types', function (Blueprint $table) {
            $table->increments('type_id');//自增影片类型ID
            $table->char('type_name',20);//影片类型名，如动作片，爱情片，教育片
            $table->string('type_time');//栏目上传时间
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('film_types');
    }
}
